package com.z.pojo;

import java.io.Serializable;

public class Cart implements Serializable {
    private Integer gid;
    private String  gname;
    private String  g_img;
    private Double  price;
    private Integer num;

    public Cart() {
    }

    public Cart(Integer gid, String gname, String g_img, Double price, Integer num) {
        this.gid = gid;
        this.gname = gname;
        this.g_img = g_img;
        this.price = price;
        this.num = num;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public String getG_img() {
        return g_img;
    }

    public void setG_img(String g_img) {
        this.g_img = g_img;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "gid=" + gid +
                ", gname='" + gname + '\'' +
                ", g_img='" + g_img + '\'' +
                ", price=" + price +
                ", num=" + num +
                '}';
    }
}
